<?php

namespace IDock\Insurance\ACIC\Request;

use IDock\Insurance\ACIC\Response\ProposalStatusResponse;
use IDock\Visitor\ProposalStatusVisitor;

class ProposalStatusRequest extends AllACICRequest
{
    protected $code = 'Q03';

    protected $response = ProposalStatusResponse::class;

    protected $urlTip = '投保单/保单状态查询';

    /**
     * @var  ProposalStatusVisitor $visitor
     */
    protected $visitor;

    /**
     * @return array
     */
    public function generate(): array
    {
        return [
            'CConfirmNo' => $this->visitor->ciInquiryNo,
            'BConfirmNo' => $this->visitor->biInquiryNo,
            'ConfirmNo' => $this->visitor->inquiryNo,
        ];
    }
}